using System;
using System.Collections.Generic;
using System.Text;

namespace Client
{
    public class ResponseMessageHeader: BasicMessageHeader
    {
        Guid m_relatedTo;

        public ResponseMessageHeader()
        {
        }

        public ResponseMessageHeader(Uri uriTo, Guid relatedTo, Guid messageId, String action)
            : base(uriTo,messageId,action)
        {
            m_relatedTo = relatedTo;
        }
                
        /// <summary>
        /// destination endPoint
        /// </summary>
        public String To //http://fabrikam.com/Server</wsa:To> 
        {
            get { return base.m_uriTo.AbsoluteUri; }
            set { base.m_uriTo = new Uri(value); }
        }

        /// <summary>
        /// unique message id
        /// </summary>
        public Guid MessageId
        {
            get { return base.m_messageId; }
            set { base.m_messageId = value; }
        }

        /// <summary>
        /// action that will be executed in remote endpoint
        /// </summary>
        public String Action
        {
            get { return base.m_action; }
            set { base.m_action = value; }
        }

        /// <summary>
        /// Guid fom message of request
        /// </summary>
        public Guid RelatesTo 
        {
            get { return m_relatedTo; }
            set { m_relatedTo = value; }
        }
    }
}
